package com.woniuxy.company5.service.impl;

import com.woniuxy.company5.dto.RepDistributionDto;
import com.woniuxy.company5.entity.RepDistribution;
import com.woniuxy.company5.mapper.RepDistributionMapper;
import com.woniuxy.company5.service.RepDistributionService;
import com.woniuxy.company5.vo.RepDistributionVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RepDistributionServiceImpl implements RepDistributionService {
    @Resource
    private RepDistributionMapper repDistributionMapper;

    @Override
    public List<RepDistributionVo> selectByLike(RepDistributionDto repDistributionDto) {
        return repDistributionMapper.selectByLike(repDistributionDto);
    }

    @Override
    public int insertSelective(RepDistribution record) {
        return repDistributionMapper.insertSelective(record);
    }

    @Override
    public List<RepDistributionVo> selAllDirRep() {
        return repDistributionMapper.selAllDirRep();
    }

    @Override
    public List<RepDistributionVo> disSearchByNums(String num) {
        return repDistributionMapper.disSearchByNums(num);
    }
}
